package demo5;

public class TestPerson {
    public static void main(String[] args) {
        Person person = new Person();
        person.show();

        // person.name = "李树强";
        person.setName("李树强");
       // person.age = 22;//直接访问是错误的
        person.setAge(20);
        person.show();

    }
}
